import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 获取公司信息
export function getHtmlContent() {
  return request({
    url: '/html/content/',
    method: 'get'
  })
}

// 修改公司
export function updateHtmlContent(data) {
  return request({
    url: '/html/content/set',
    method: 'post',
    data: data
  })
}

// 页头图标上传
export function uploadHeaderIcon(data) {
  return request({
    url: '/html/content/uploadHeaderIcon',
    method: 'post',
    data: data
  })
}

export function uploadBanner(data) {
  return request({
    url: '/html/content/uploadBanner',
    method: 'post',
    data: data
  })
}

export function removeIndexBanner(data) {
  return request({
    url: '/html/content/removeIndexBanner',
    method: 'put',
    params: data
  })
}
